<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../vue.js"></script>
  <style>


#box {
  width: 200px;
  height: 200px;
  background: yellowgreen;
  animation: move 3s infinite;
  /* transition: all 3s; */
}

#box:hover {
  width: 500px;
}

@keyframes move {
  25% {
    background: cadetblue;
  }

  50% {
    background: chocolate;
  }

  70% {
    background:crimson;
  }

  70% {
    background:green;
  }
}


  </style>
</head>
<body>
  <div id="app">
    <button @click="show =!show">显示/隐藏</button>
    <div id="box"
    v-show="show"
    >

    </div>
  </div>

  <script>


var vm = new Vue({
  el:"#app",
  data:{
    show:false
  }
})
  </script>
  
</body>
</html>